FBHAM

Section: User Commands (1)
Updated: 25-Jun-90
Index Return to Main Contents
 

NAME

fbham - Convert 24 bit RGB color to Amiga HAM mode  

SYNOPSIS

fbham < image.cbm > image.ham
 

DESCRIPTION

fbham reads a 24bit color image and produces Amiga HAM mode. The output is an IFF ILBM file with 6 planes. The first two bits of a pixel specify an operation and the last four bits specify a color. The operations are:

   00   Use the 4bit value as in index into the color table.
   01   Copy the RGB values for the pixel to the immediate left,
        using the 4bit value to change the intensity of the red
        gun.  The new red value will be the 4bit value shifted
        left 4 bits (so 0,1,...15 maps to 0,16,...240).
   02   Same as above, but change green gun.
   03   Same as above, but change blue gun.

If your input image is not 24 bits, use unmap(1) to convert almost any color image to 24 bits.  

OPTIONS

None.  

SEE ALSO

fbm(1) for general discussion, pbm(1) for PBM routines.  

BUGS

Really lousy choice for initial colormap. Should use the build_colormap routine from fbquant.  

HISTORY

Copyright (C) 1989,1990 by C. Harald Koch & Michael Mauldin. Permission is granted to use this file in whole or in part for any purpose, educational, recreational or commercial, provided that this copyright notice is retained unchanged. This software is available to all free of charge by anonymous FTP and in the UUNET archives.
25-Jun-90 Michael Mauldin at Carnegie Mellon University
Release 1.0 mlm@cs.cmu.edu
20-May-89 Michael L. Mauldin at Carnegie Mellon University
Wrote this man page. Software by C. Harald Koch (chk) at DCIEM Toronto <chk@ben.dciem.dnd.ca>, based on ray2.c from DBW_Render, Copyright 1987 David B. Wecker.


 

Index

NAME
SYNOPSIS
DESCRIPTION
OPTIONS
SEE ALSO
BUGS
HISTORY

This document was created by man2html, using the manual pages.
Time: 04:53:26 GMT, August 26, 2022